identify panic and reboot/halt functions as noreturn
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 4 Mar 2014 10:17:03 +0000 (11:17 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 4 Mar 2014 10:17:03 +0000 (11:17 +0100)
commit4b2ae19ef12a5fff51c810a1e0310105800f733c
treee5188f0a500b2ae206d90e2b0cc4b9ef64461ca2
parent0a1082e8fd83ec648f5ddeb09b1b73e6865e675e
identify panic and reboot/halt functions as noreturn

On an x86 build (GCC Debian 4.7.2-5), this substantially reduces the size of
.text and .init.text sections.

Experimentally, even in a non-debug build, GCC uses `call` rather than `jmp`
so there should be no impact on any stack trace generation.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/arm/shutdown.c
xen/arch/x86/cpu/mcheck/mce.h
xen/arch/x86/shutdown.c
xen/common/shutdown.c
xen/include/asm-arm/smp.h
xen/include/asm-x86/processor.h
xen/include/xen/lib.h
xen/include/xen/shutdown.h